<table width="100%" border="0" cellspacing="0" cellpadding="10">
	<tr> 
		<?php  
			$Q = "SELECT * from afterthought where display = 'yes' ORDER BY RAND() limit 0,1";
			$check= $db->sql_total($Q);
			$result = $db->sql_list($Q);
		?>
		<td align="center" class="arial11P">
		   <?php
			if($check <> 0){
				echo $result['content'];
			}
		   ?>
		</td>
	</tr>
</table>